package TUILayer;

import java.awt.BorderLayout;

import java.awt.EventQueue;

import javax.swing.DefaultListModel;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import java.awt.SystemColor;
import TUILayer.homeView;

import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.border.LineBorder;

import java.awt.Color;

public class logView extends JFrame {

	private JPanel contentPane;
	public DefaultListModel<String> modelLogs;
	private JList<String> listErrorLog;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					logView frame = new logView();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public logView() {
		setTitle("System Logs");
		setForeground(SystemColor.activeCaption);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBackground(SystemColor.activeCaption);
		contentPane.setForeground(SystemColor.activeCaption);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblSystemLog = new JLabel("System log:");
		lblSystemLog.setBounds(10, 11, 293, 14);
		contentPane.add(lblSystemLog);
		
		JLabel label = new JLabel("_______________________________________________________________________________");
		label.setBounds(-3, 8, 557, 31);
		contentPane.add(label);
		
		listErrorLog = new JList<String>();
		listErrorLog.setBorder(new LineBorder(new Color(0, 0, 0)));
		listErrorLog.setBounds(10, 38, 414, 212);
		contentPane.add(listErrorLog);
		 modelLogs = new DefaultListModel<String>();
		  
		    
		    listErrorLog.setModel(modelLogs);
	}

}
